package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Sinchoice;
import tech.aistar.mapper.SinchoiceMapper;
import tech.aistar.service.ISinchoiceService;

import java.util.List;

@Service
public class SinchoiceServiceImpl implements ISinchoiceService {

    @Autowired
    private SinchoiceMapper sinchoiceMapper;

    @Override
    public List<Sinchoice> findAll() {
        List<Sinchoice> sinchoiceList = sinchoiceMapper.findAll();
        return sinchoiceList;
    }

    @Override
    public Sinchoice findById(Long id) {
        return sinchoiceMapper.findById(id);
    }

    @Override
    public List<Sinchoice> findByPaperId(Long paperId) {
        return sinchoiceMapper.findByPaperId(paperId);
    }

    @Override
    public String findAnswerByid(Long id) {
        return sinchoiceMapper.findAnswerByid(id);
    }


}
